home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 4 / The 640 Meg Shareware Studio CD-ROM Volume IV (Data Express)(1994).ISO / clang / 3d_lib.zip / DUMPM.C < prev    next >
C/C++ Source or Header  |  1993-05-09  |  857b  |  32 lines

  1. /* Dump matrix to screen
  2.  
  3.    Copyright (c) 1988 by Gus O'Donnell
  4.  
  5.    Revision history:
  6.  
  7.    Version 1.00         February 29, 1988       As released.
  8.  
  9.    Version 1.01         March 20, 1988          Created libraries for all
  10.                                                 memory models
  11.  
  12. */
  13. #include "3d.h"
  14. #include <float.h>
  15. #include <math.h>
  16. #include <stdio.h>
  17.  
  18. void    dump_mat(MATRIX this_mat)
  19.  
  20. /* Dump the matrix to the screen.  Provided as a debugging tool. */
  21.  
  22. {
  23.     int rc;
  24.  
  25.     for (rc = 0; rc < RMAX; rc++)
  26.     printf (" %+12.5e, %+12.5e, %+12.5e, %+12.5e\n", this_mat [rc] [0],
  27.                                                      this_mat [rc] [1],
  28.                                                      this_mat [rc] [2],
  29.                                                      this_mat [rc] [3]);
  30.     printf ("\n");
  31. }
  32.